{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "在教课程" %}
{% block title %}
    {{ title }}
{% endblock %}
{% block user_main %}

    {% for row in course %}
        <article class="row video-item">
            <div class="col-md-9">
                <h2 class="video-title my_course_title"><a href="">{{ row.Course_title }}</a></h2>
                <p class="video-description">
                    {{ row.Course_info | slice(0,100)}}
                </p>
                <div class="row video-params">
                    <div class="col-md-4">
                        日期: <b>2013-6-9</b>
                    </div>
                    <div class="col-md-4">
                        课时: <b>200</b>
                    </div>
                    <div class="col-md-4">
                        学生: <b>312人</b>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <p class="button-full"><a href="{{ path("WebCourseInfoManage",{uniqueId:row.Course_uniqueId}) }}" class="btn btn-green">管理课程信息</a></p>
                <p class="button-full"><a href="{{ path("WebCourseLessonList",{uniqueId:row.Course_uniqueId}) }}" class="btn btn-green">管理课程目录</a></p>
                <p class="button-full"><a href="{{ path("WebCourseLessonArrangeAdd",{uniqueId:row.Course_uniqueId}) }}" class="btn btn-dark">添加章节</a></p>
                <p class="button-full"><a href="{{ path("WebCourseLessonContentAdd",{uniqueId:row.Course_uniqueId}) }}" class="btn btn-dark">添加课时</a></p>
                <p class="button-full"><a href="{{ path("WebCourseIndex",{uniqueId:row.Course_uniqueId}) }}" class="btn btn-orange">预览课程</a></p>
            </div>
        </article>
        <hr/>
    {% endfor %}
{% endblock %}
{% block myCss %}
<style>
    .my_course_title{
        padding-top: 0;
        margin-top: 0;
        line-height: 0;
    }
</style>
{% endblock %}